<div class="container-fluid">
    <h1>Create form</h1>
    <?php
    $cls = $viewModel->get("cls");
    ?>

    <?php include 'views/Include/alert.php'; ?>
    <form class="form-horizontal" method="POST">

        <div class="control-group">
            <label class="control-label" for="inputSubjectID">Class: </label>
            <div class="controls">
                <select id="inputScheduleClass" name="classes_id">
                    <option value="">Select Class</option>
                    <?php
                    foreach ($cls as $cl) {
                        echo "<option value='" . $cl->classes_id . "'>" . $cl->classname . "</option>";
                    }
                    ?>
                </select>
            </div>
        </div>

        <div class="control-group">
            <label class="control-label" for="inputSubjectID">Date: </label>
            <div class="controls">
                <input type="text" id="inputScheduleDateSubject"  class="inputScheduleDateSubject"  name="inputScheduleDateSubject" placeholder="Begin" />
            </div>
        </div>

        <div class="control-group" >
            <label class="control-label" for="inputSubjectID">Day of week: </label>
            <div class="controls" id="sltDay"  style="">
                <table class="table"> 
                    <tr>
                        <td><label>
                                <input type="checkbox" class="sltDayOfWeek" name="sltDayOfWeek[]" value="2" id="chkMonday"  disabled="on"/>
                                Monday</label></td>
                        <td><label>
                                <input type="checkbox" class="sltDayOfWeek" name="sltDayOfWeek[]" value="3" id="chkTueday" disabled="on"/>
                                Tuesday</label></td>
                        <td><label>
                                <input type="checkbox" class="sltDayOfWeek" name="sltDayOfWeek[]" value="4" id="chkWednesday" disabled="on"/>
                                Wednesday</label></td>
                    </tr>
                    <tr>
                        <td><label>
                                <input type="checkbox" class="sltDayOfWeek" name="sltDayOfWeek[]" value="5" id="chkThursday" disabled="on" />
                                Thursday</label></td>
                        <td><label>
                                <input type="checkbox" class="sltDayOfWeek" name="sltDayOfWeek[]" value="6" id="chkFridays" disabled="on"/>
                                Friday</label></td>
                        <td><label>
                                <input type="checkbox" class="sltDayOfWeek" name="sltDayOfWeek[]" value="7" id="chkSaturday"  disabled="on"/>
                                Saturday</label></td>
                    </tr>
                </table>
            </div>
        </div>
        <div class="control-group">
            <label class="control-label" for="inputSubjectID">Subject: </label>
            <div class="controls">
                <select id="inputScheduleSubject" name="subject_id">
                </select>
            </div>
        </div>
        <div class="control-group">
            <label class="control-label" for="inputSubjectID">List Lession: </label>
            <div class="controls">
                <select name="listLession" id="listLession" multiple size="10">
                </select>
                <input type="button" id="btnPutSchedule" class="btn btn-info" value="Schedule"/>
            </div>
        </div>
        <div class="control-group" style="display: none;">
            <label class="control-label" for="inputSubjectID">Number of Lession: </label>
            <div class="controls">
                <input type="text" id="inputNumberOfLession"  class="inputNumberOfLession"  name="inputNumberOfLession" value="0"/>
            </div>
        </div>
        <div id="rooms"></div>



        <div class="control-group"></div>
        <div class="control-group">
            <div class="controls">
                <button type="submit" id="btnCrateSchedule" class="btn btn-success">Submit</button>
                <button type="reset" class="btn">Reset</button>
            </div>
        </div>
    </form>
</div>